﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using OL.FrameCore.Infrastructure.Security;

namespace OL.FrameCore.WebUI.Controllers
{
    public class CommonController : ControllerBase
    {


        public CommonController()
        {

        }

        /// <summary>
        /// 获取RSA公钥
        /// </summary>
        /// <returns></returns>
        [AllowAnonymous]
        public IActionResult GetRSAPublicKey()
        {
            var publicKey = RSAHelper.GetPublic();
            return Content(publicKey);
        }

    }
}
